aboutsummaryrefslogtreecommitdiff
path: root/src/app/anime/[id]
diff options
context:
space:
mode:
authorreal-zephex <[email protected]>2024-05-11 02:01:28 +0530
committerreal-zephex <[email protected]>2024-05-11 02:01:28 +0530
commit6c56263791c80676518532c9f91e0fb3d84fd079 (patch)
treec98cbda079781cba1f590a2be7bf2ab1d972fc58 /src/app/anime/[id]
parentadjustments to the cache system (diff)
downloaddramalama-6c56263791c80676518532c9f91e0fb3d84fd079.tar.xz
dramalama-6c56263791c80676518532c9f91e0fb3d84fd079.zip
adjustments to the cache system
Diffstat (limited to 'src/app/anime/[id]')
-rw-r--r--src/app/anime/[id]/page.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app/anime/[id]/page.jsx b/src/app/anime/[id]/page.jsx
index 0b85e8e..edd100a 100644
--- a/src/app/anime/[id]/page.jsx
+++ b/src/app/anime/[id]/page.jsx
@@ -10,7 +10,8 @@ const AnimeInfoHomepage = async ({ params }) => {
const id = params.id;
const data = await anime_info(id);
- preFetchVideoLinks(data.episodes.slice(0, 49));
+ const sliceLength = Math.min(data.episodes.length, 49);
+ preFetchVideoLinks(data.episodes.slice(0, sliceLength));
return (
<main className={styles.main}>